package com.capIX.Threads;

/*
 * The limitation with this approach (besides being a poor design choice in most
 *  cases) is that if you extend Thread, you can't extend anything else.
 *  And it's not as if you really need that inherited Thread class behavior,
 *  because in order to use a thread you'll need to instantiate one anyway.
 */
public class MyThread extends TestThread {
	public void run() {
		System.out.println("Important job running in MyThread");
	}

	public void run(String s){
		System.out.println("String in run is "+s);
		
	}
	MyThread t=new MyThread();
}
